/**
 * Created by Administrator on 2017/7/8 0008.
 */
$(function () {
   var $span = $(".info_option span");
    $span.mousemove(function () {
        $(this).addClass("active_span").siblings().removeClass("active_span");
        var index = $span.index(this);
        $(".tab ._info_form table").eq(index).show().siblings().hide();
    })


    // jQuery.ajax({
    //     type:"get",
    //     async:false,
    //     url:"json/information.json",
    //     success:function (data) {
    //         console.log(data);
    //         for(var i=0;i<data.length;i++){
    //             $(".box_ ul").append('<li><div class="box_content"><img src="'+data[i].imgs+'"><div class="content"><h3 name="'+data[i].id+'"><a href="javascript:;">'+data[i].title+'</a></h3><p>'+data[i].content+'</p><a href="javascript:;">'+data[i].details+'</a></div></div></li>')
    //         }
    //     }
    // })
/*    jQuery.ajax({
        type:"get",
        async:false,
        url:"http://123.207.13.182/api/v1.0/charts_v3",
        success:function (data) {
            var data = data.measurements;
            for(var i=0;i<data.length;i++){
                $(".box_ ul").append('<li name="'+data[i]._id+'"><div class="box_content"><img src="'+ data[i].user.small_avatar +'"><div class="content"><h3><a href="javascript:;">'+data[i].ranking+'</a></h3><p>'+ data[i].name +'</p><a href="javascript:;"></a></div></div></li>')
            }
        }
    })
    $(".box_ ul li").on("click",function () {
        var mid = this.getAttribute('name');
        window.location.href = "activity.html?mid="+this.getAttribute('name');
    })*/
    
});